{include file="header.html"}
<div class="main-body"> {include file='gift/nav.html'}
  <form method="post" action="admin.php?m=gift&a=save">
    <input type="hidden" name="id" style="display:none;" value="{$data.id}" >
    <table class="table table-bordered" >
      <tr>
        <td width="100">名称：</td>
        <td><input type="text" name="title" id="title" value="{$data.title}" ></td>
      </tr>
      <tr>
        <td>类别：</td>
        <td>
        	<select name="catid">
            	{foreach item=c key=k from=$catlist}
            	<option value="{$k}" {if $data.catid eq $k} selected{/if}>{$c}</option>
                {/foreach}
            </select>
        
        </td>
      </tr>
      <tr>
        <td>价格：</td>
        <td><input type="text" name="price" id="price" value="{$data.price}" ></td>
      </tr>
      <tr>
							<td>图片：</td>
							<td>
								<div class="js-upload-item">
									<input type="hidden" class="js-imgurl" name="imgurl" id="imgurl" value="{$data.imgurl}">
									<div style="display: none;">
										<input type="file" id="file-1" class="js-upload-file"  />
									</div>
									<div class="pdb-10">
										<div class="btn js-upload-btn">上传图片</div>
									</div>
									
									<div class="imgbox js-imgbox">
										{if $data.imgurl}
										<img src="{$data.imgurl}.100x100.jpg">
										{/if}
									</div>
								</div>
							</td>
						</tr>
      <tr>
        <td>排序：</td>
        <td><input type="text" name="orderindex" id="orderindex" value="{$data.orderindex}" ></td>
      </tr>
      <tr>
      	<td>css</td>
      	<td>
      		<input type="text" name="css" value="{$data.css}" />
      	</td>
      </tr>
      <tr>
        <td>状态：</td>
        <td><input type="text" name="status" id="status" value="{$data.status}" ></td>
      </tr>
      <tr>
        <td></td>
        <td><input type="submit" value="保存" class="btn btn-success"></td>
      </tr>
    </table>
  </form>
</div>
{include file="footer.html"}
<script src="/static/js/h5upload.js"></script>
</body>
</html>